<% if @post.valid? %>
  //Display the new post
  $(".timeline").prepend("<%= escape_javascript render(@post.post_activity) %>");

  SocialStream.Timeline.update("<%= escape_javascript dom_id(@post.post_activity) %>");
  SocialStream.Wall.new_();
<% else %>
  SocialStream.Flash.error('<%= j @post.errors.full_messages.to_sentence %>');
  SocialStream.Wall.new_();
<% end %>
